﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vit.Web.Data;

namespace Vit.Web.Services
{
    public interface IHtmlControlProvider
    {
        string GetControl(DataViewType viewType, string dataTypeName, string fieldName, string format, object val, string htmlAttributes, string htmlStyles);
        string GetLabel(string dataTypeName, string format, object val, string htmlAttributes, string htmlStyles);
        string GetEditor(string dataTypeName, string fieldName, string format, object val, string htmlAttributes, string htmlStyles);
        string GetReferenceDisplayText(Type entityType, string format, object val, string htmlAttributes, string htmlStyles);
        string GetReferenceDropdownList(Type entityType, string fieldName, object val, string datasourceName, object args, string optionLabel, string htmlAttributes, string htmlStyles);
        string GetReferenceDialog(Type entityType, string fieldName, string format, object val, string controller, string buttonText, string dialogTitle, string htmlAttributes, string htmlStyles);
    }
}
